﻿using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;

namespace Nirvana
{
    [CustomEditor(typeof(UIVariableBindGray))]
    public class UIVariableBindGrayEditor : UIVariableBindBoolEditor
    {
        private SerializedProperty enabledGray;
        private SerializedProperty disabledGray;
        protected override void OnEnable()
        {
            if (this.target == null) return;
            base.OnEnable();
            this.enabledGray = serializedObject.FindProperty("enabledGray");
            this.disabledGray = serializedObject.FindProperty("disabledGray");
        }

        public override void OnInspectorGUI()
        {
            base.OnInspectorGUI();
            serializedObject.Update();
            EditorGUILayout.Space();
            EditorGUILayout.PropertyField(this.enabledGray, new GUILayoutOption[0]);
            EditorGUILayout.PropertyField(this.disabledGray, new GUILayoutOption[0]);
            serializedObject.ApplyModifiedProperties();
        }

    }
}
